package com.ruoyi.yuwen.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 升级申请审核对象 t_apply
 * 
 * @author ruoyi
 * @date 2023-04-20
 */
@Data
public class Apply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 凭证图片 */
    @Excel(name = "凭证图片")
    private String picture;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 审核单状态（0：未审核，1：已过审，2：已拒绝） */
    @Excel(name = "审核单状态", readConverterExp = "0=：未审核，1：已过审，2：已拒绝")
    private Integer state;

    /** 拒绝理由 */
    @Excel(name = "拒绝理由")
    private String reason;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private String addtime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("picture", getPicture())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("phone", getPhone())
            .append("state", getState())
            .append("reason", getReason())
            .append("addtime", getAddtime())
            .toString();
    }
}
